function OtherRule() {
    var baseUrl = "/m/rule";

    this.getImportanceRules = function (taskId, type, callback) {
        var d = {};
        d.taskId = taskId;
        d.type = type;

        $.ajax({
            url: baseUrl + "/importanceRule/json",
            data: d,
            success: function (ret) {
                var importanceRules = JSON.parse(ret);
                callback(importanceRules);
            }
        });
    }

    /**
     * 
     * @param taskId
     * @param type
     * @param data
     * @param callback
     */
    this.saveImportanceRule = function (taskId, type, data, callback) {
        var d = {};
        d.taskId = taskId;
        d.type = type;
        d.data = data;

        $.ajax({
            type: "POST",
            url: baseUrl + "/importanceRule/save",
            data: d,
            success: function (ret) {
                callback(ret);
            }
        });
    }

}